<?php

class User {

    private $id;
    private $username;
    private $password;
    private $name;
    private $surname;
    private $mail;
    private $permissions;

    public function __get($property) {
        return $this->{$property};
    }

    public function __set($property, $value) {
        $this->{$property} = $value;
    }
    
    public function get_name() {
        return $this->name . ' ' . $this->surname; 
    }

}

?>
